package com.klamerek.rainbow.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.klamerek.rainbow.client.charts.NGoneChart;
import com.klamerek.rainbow.client.charts.NGoneChartElt;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Rainbow_widget implements EntryPoint {

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		
		List<NGoneChartElt> liste = new ArrayList<NGoneChartElt>();
		liste.add(new NGoneChartElt(3,5));
		liste.add(new NGoneChartElt(1,5));
		liste.add(new NGoneChartElt(2,5));
		liste.add(new NGoneChartElt(4,5));
		liste.add(new NGoneChartElt(5,5));
		
		NGoneChart chart = new NGoneChart(liste);
		
		
		RootPanel.get().add(chart);
	}
}
